package org.soretro.portfolio
{
	import org.robotlegs.mvcs.Context;
	import org.soretro.portfolio.model.MainNavigationModel;
	import org.soretro.portfolio.view.MainView;
	import org.soretro.portfolio.view.MainViewMediator;
	import org.soretro.portfolio.view.UpdatesItemMediator;
	import org.soretro.portfolio.view.UpdatesItemRenderer;
	import org.soretro.portfolio.view.WorkItemMediator;
	import org.soretro.portfolio.view.WorkItemRenderer;
	import org.soretro.portfolio.view.background.CopyrightStripMediator;
	import org.soretro.portfolio.view.background.CopyrightStripView;
	import org.soretro.portfolio.view.background.LoadingBarsMediator;
	import org.soretro.portfolio.view.background.LoadingBarsView;
	import org.soretro.portfolio.view.contacts.ContactMeStripMediator;
	import org.soretro.portfolio.view.contacts.ContactMeStripRenderer;
	import org.soretro.portfolio.view.contacts.ContactsPopupMediator;
	import org.soretro.portfolio.view.contacts.ContactsPopupRenderer;
	import org.soretro.portfolio.view.mainNavigation.MainNavigationButtonMediator;
	import org.soretro.portfolio.view.mainNavigation.MainNavigationButtonView;
	import org.soretro.portfolio.view.pages.FlashWorkMediator;
	import org.soretro.portfolio.view.pages.FlashWorkView;
	import org.soretro.portfolio.view.pages.FunStuffMediator;
	import org.soretro.portfolio.view.pages.FunStuffView;
	import org.soretro.portfolio.view.pages.GameWorkMediator;
	import org.soretro.portfolio.view.pages.GameWorkView;
	import org.soretro.portfolio.view.pages.HomePageMediator;
	import org.soretro.portfolio.view.pages.HomePageView;
	import org.soretro.portfolio.view.pages.SandboxMediator;
	import org.soretro.portfolio.view.pages.SandboxView;
	import org.soretro.portfolio.view.pages.WebWorkMediator;
	import org.soretro.portfolio.view.pages.WebWorkView;
	import org.soretro.portfolio.view.videoPlayer.VideoMediator;
	import org.soretro.portfolio.view.videoPlayer.VideoView;
	
	public class PortfolioContext extends Context
	{
		public function PortfolioContext()
		{
			super();
		}
		
		override public function startup():void
		{
			// Controllers
//			commandMap.mapEvent( MainNavigationEvent.CLICKED, MainNavigationTabClickedCommand, MainNavigationEvent);
//			commandMap.mapEvent( MainNavigationEvent.STATE_CHANGE, PageStateChangeCommand, MainNavigationEvent);
//			commandMap.mapEvent( WorkItemEvent.CLICKED, YouTubeItemClickCommand, WorkItemEvent );
			
			// Models
			injector.mapSingleton( MainNavigationModel );
			
			// Views
			mediatorMap.mapView( MainView, 					MainViewMediator );
			mediatorMap.mapView( MainNavigationButtonView, 	MainNavigationButtonMediator );
			mediatorMap.mapView( LoadingBarsView, 			LoadingBarsMediator );
			mediatorMap.mapView( VideoView, 				VideoMediator );
			mediatorMap.mapView( CopyrightStripView, 		CopyrightStripMediator );
			
			mediatorMap.mapView( FlashWorkView, 			FlashWorkMediator );
			mediatorMap.mapView( FunStuffView, 				FunStuffMediator );
			mediatorMap.mapView( GameWorkView, 				GameWorkMediator );
			mediatorMap.mapView( HomePageView, 				HomePageMediator );
			mediatorMap.mapView( SandboxView, 				SandboxMediator );
			mediatorMap.mapView( WebWorkView, 				WebWorkMediator );
			
			mediatorMap.mapView( WorkItemRenderer, 			WorkItemMediator );
			mediatorMap.mapView( UpdatesItemRenderer, 		UpdatesItemMediator );
			mediatorMap.mapView( ContactMeStripRenderer, 	ContactMeStripMediator );
			mediatorMap.mapView( ContactsPopupRenderer, 	ContactsPopupMediator );
			
			super.startup();
		}
	}
}